//
//  ArtistMainModel.m
//  ArtDog
//
//  Created by dllo on 16/9/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ArtistMainModel.h"
#import "HomeExhibitWorkList.h"

@implementation ArtistMainModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _idField = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"workList"]) {
        NSMutableArray<HomeExhibitWorkList *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            HomeExhibitWorkList *exhibitModel = [HomeExhibitWorkList modelWithDic:dic];
            [array addObject:exhibitModel];
        }
        _workList = array;
    }
}


@end
